package cn.kgc.web.service;

import cn.kgc.common.entity.Article;
import cn.kgc.common.entity.Category;
import cn.kgc.common.entity.DataPage;

import java.util.HashMap;
import java.util.List;

/**
 * Created by teacher ZHANG on 2023/2/1
 */
public interface ArticleService {
    public List<Category> listCategories();
    public DataPage<HashMap<String, Object>> listArticles(Integer categoryId, Integer pageNum, Integer pageSize);
    public Article findArticle(Integer articleId);
    public List<Article> listByIds(List<Integer> articleIds);
}
